.ms-gr-auto-loading {
  position: relative;

  > .ms-gr-ant-spin-nested-loading {
    position: absolute !important;
    width: 100%;
    height: 100%;

    .ms-gr-auto-loading-default-antd {
      position: absolute !important;
      display: flex !important;
      align-items: center;
      justify-content: center;
      max-height: 100% !important;
      inset: 0;
    }
  }

  & .ms-gr-auto-loading-error-default-antd {
    position: fixed !important;
    top: 50%;
    left: 50%;
    width: 80%;
    max-height: 100%;
    transform: translate(-50%, -50%);
  }
}
